The first
line defines three instances i, j and k of type Integer. For each instance
the special operation constructor should be
called (Allocation memory). In this example, this is internally
done by the compiler. The compiler reserves memory to hold the value of
an integer and ``binds'' the corresponding name to it. If you refer to i you
actually refer to this memory area which was ``constructed'' by the
definition of i. Optionally, compilers might
choose to initialise the memory, for example, they might set it to 0.
MODULAR
PROGRAMMING
int i, j, k; /* Define three integers */
i = 1; /* Assign 1 to integer i */
j = 2; /* Assign 2 to integer j */
k = i + j; /* Assign the sum of i and j to k */